package com.huangpuweb.api.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class XJTTransportCompanyRowMapper implements RowMapper<XJTTransportCompany>{


	@Override
	public XJTTransportCompany mapRow(ResultSet rs, int rowNum) throws SQLException {
		XJTTransportCompany  lj= new XJTTransportCompany();
		lj.setId(rs.getInt("id"));
		lj.setGis_id(rs.getInt("gis_id"));
		lj.setEvent_type(rs.getInt("event_type"));
		lj.setRemark(rs.getString("remark"));
		lj.setContacts(rs.getString("contacts"));
		lj.setContacts_tel(rs.getString("contacts_tel"));
		lj.setCompany_gis(rs.getString("company_gis"));
		lj.setName(rs.getString("name"));
		lj.setOrg_code(rs.getString("org_code"));
		lj.setSite(rs.getString("site"));
		return lj;
	}

}
